#include "stdafx.h"
#include "pople.h"


pople::pople(string name)
	:animal(name),sk()
{
	foot = 2;
	finger = 5;
	hand = 2;
	weiba = 0;
}

void pople::eat()
{
	cout << "people named:"<<aniName.c_str()<<" is eating" << endl;
	string food;
	switch (sk)
	{
	case pople::black:
		food = "grass";
		break;
	case pople::white:
		food = "ox meat";
		break;
	case pople::yellow:
		food = "rice";
		break;
	case pople::mixed:
		food = "any thing";
		break;
	default:
		food = "other food";
		break;
	}
	cout << aniName.c_str()<<" is eating" <<food.c_str() << endl;
}

void pople::print()
{
	animal::print();
	string skin;
	switch (sk)
	{
	case pople::black:
		skin = "black";
		break;
	case pople::white:
		skin = "white";
		break;
	case pople::yellow:
		skin = "yellow";
		break;
	case pople::mixed:
		skin = "mixed";
		break;
	default:
		skin = "other skin";
		break;
	}
	cout << "the people skin is:" << skin.c_str() << endl;

}

void pople::setSkin(skinType s)
{
	sk = s;
}
